package cn.com.chengmandian.bike.service;

import cn.com.chengmandian.bike.model.EbMemberDeposit;
import cn.com.chengmandian.bike.model.vo.MemberDepositVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 电单车运营-用户免押卡购买记录 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-01-19
 */
public interface IEbMemberDepositService extends IService<EbMemberDeposit> {

    MemberDepositVo getLastDeposit(Integer areaId, Integer memberId);

    EbMemberDeposit getMemberAvailableRecord(Integer areaId, Integer memberId);

    EbMemberDeposit payCard(Integer memberId, Integer cardId, BigDecimal money);

    long getCount(Integer areaId, Integer memberId);
}
